import request from '../utils/request.js'

export function getAllcity(params) {
  return request({
    url: 'v1/accessor/get-area',
    method: 'get',
    params: params
  })
}
export function getCityCode(params) {
  return request({
    url: 'v3/index/city-code',
    method: 'post',
    params: params
  })
}
export function getAreaList(params) {
  return request({
    url: 'v3/index/area-list',
    method: 'post',
    params: params
  })
}
export function getCity(params) {
  return request({
    url: 'v3/tian/get-city',
    method: 'get',
    params: params
  })
}
export function getLnt(params) {
  return request({
    url: 'v3/tian/get-lnt',
    method: 'get',
    params: params
  })
}
export function getNearby(params) {
  return request({
    url: 'v3/tian/get-nearby',
    method: 'get',
    params: params
  })
}